﻿<phone:PhoneApplicationPage 
    x:Class="DevPhoneToolkitSample.Samples.CalendarControlGesturesSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:DevPhone="clr-namespace:DevPhone.Controls;assembly=DevPhone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Margin="0,20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel>
            <Border Background="White" VerticalAlignment="Top" BorderBrush="Gray" BorderThickness="1">
                <Image Name="Logo" Source="/DevPhoneToolkitSample;component/Images/DevPhoneToolkit.png" Stretch="None" VerticalAlignment="Top" HorizontalAlignment="Left" />
            </Border>
        </StackPanel>
        <Grid x:Name="ContentPanel" Grid.Row="1">
            <StackPanel>
                <StackPanel Margin="12,5,12,0">
                    <TextBlock Text="Calendar - Gestures Sample" FontSize="32"/>
                    <TextBlock Text="Tap over month or year to change view mode. Flick gesture to change dates, moths and year." TextWrapping="Wrap"/>
                    <StackPanel Orientation="Horizontal" RenderTransformOrigin="0.5,0.5" Margin="0,-20,0,0" HorizontalAlignment="Left">
                        <TextBlock TextWrapping="Wrap" Text="Choose Gesture" Margin="0,2,0,0" VerticalAlignment="Center" FontSize="20"/>
                        <RadioButton x:Name="OptVert" Content="Vertical" Margin="0,5,0,0" RenderTransformOrigin="0.5,0.5" IsChecked="True" Click="OptVertClick">
                    		<RadioButton.RenderTransform>
                    			<CompositeTransform ScaleX="0.9" ScaleY="0.9"/>
                    		</RadioButton.RenderTransform>
                    	</RadioButton>
                        <RadioButton x:Name="OptHorz" Content="Horizontal" Margin="0,5,0,0" RenderTransformOrigin="0.5,0.5" Click="OptHorzClick">
                    		<RadioButton.RenderTransform>
                    			<CompositeTransform ScaleX="0.9" ScaleY="0.9"/>
                    		</RadioButton.RenderTransform>
                    	</RadioButton>
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="0,0,0,0">
                    <DevPhone:CalendarControl x:Name="Calendar" ChangeSelectDate="CalendarControlChangeSelectDate" Margin="0,-15,0,0" GestureDirection="Vertical" />
                    <TextBlock Text=" " FontSize="24" />
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
